package com.bins.es.eo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Document(indexName = "user")
public class UserModel {

    @Id
    private Long id;

    private String userName;

    private String gender;

    private Integer age;
}
